package svgedit.svg;

import java.awt.Color;
import java.awt.Point;
import java.util.ArrayList;
import java.util.Vector;

import javax.swing.undo.AbstractUndoableEdit;

@SuppressWarnings("serial")
public class UndoPaint extends AbstractUndoableEdit{

	private ArrayList<SVGElement> children;
	private SVGElement rect;



	public UndoPaint(SVGElement rect2, ArrayList<SVGElement> object) {
		children = object;
		this.rect = rect2;
	}

	public String getPresentationName() {
		return "Square Addition";
	}

	public void undo() {
		Color black = Color.black;
		super.undo();
		//	     for(int i=0; i<children.size();i++)
		//	    	 children.get(i).getParent().
		children.remove(rect);

	}

	public void redo() {
		super.redo();
		children.add(rect);
	}
}

